<include file="Public:header" />
<div id="zoneHeader">
    <h2>增加计费服务器</h2>
    <ul>
        <li><button type="button" class="btnFormEditSave">保存</button></li>
        <li><a href="?c={$Think.const.CONTROLLER_NAME}" class="btn">返回</a></li>
    </ul>
</div><!--/#zoneHeader-->
<div id="zoneBody" class="noFooter">
    <div id="zoneBodyContent">
        <form action="?c={$Think.const.CONTROLLER_NAME}&a=doSave" id="formEdit">
            <input type="hidden" name="id" />
            <dl class="dl2Col">
                <dt>服务器IP：</dt>
                <dd><input type="text" name="slave_ip" class="fW40" /></dd>
                <dt>服务器状态：</dt>
                <dd>
                    <label><input type="radio" name="status" value="1"><span>运行</span></label>
                    <label><input type="radio" name="status" value="2" /><span>暂停</span></label>
                    <label><input type="radio" name="status" value="0" /><span>停止</span></label>
                </dd>
            </dl>
            <ul class="btnList">
                <li><button type="submit" class="btnFormEditSave">保存</button></li>
                <li><a href="?c={$Think.const.CONTROLLER_NAME}" class="btn">返回</a></li>
            </ul>
        </form>
    </div><!--/#zoneBodyContent-->
</div><!--/#zoneBody-->
<script>
$(function(){
    var record = {status : 1};
    <notempty name="record">
    record = {$record|json_encode};
    </notempty>

    new Form($('#formEdit'), new Model(record));
})
</script>
<include file="Public:footer" />
